package cn.edu.imau.zy.system.feign;

import cn.edu.imau.zy.common.constant.ServiceNameConstants;
import cn.edu.imau.zy.common.core.domain.R;
import cn.edu.imau.zy.common.core.entity.student.StStudent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 学生信息 Feign服务层
 */
@FeignClient(name = ServiceNameConstants.STUDENT_SERVICE)
public interface RemoteStudentService
{
    @GetMapping("student/get/{studentId}")
    StStudent getStudentById(@PathVariable("studentId") String studentId);

    /**
     * 查询没有创建帐号的学生列表
     */
    @GetMapping("student/noLoginList")
    List<StStudent> getNoLoginList();

    @PostMapping("student/update")
    R editSave(@RequestBody StStudent student);

}
